// 运行单个服务
package main

import (
	"gin-demo/router"
)

func runSingleServer() {
	r := router.Router()
	//consul.Register("127.0.0.1", 8801, "goUserHttp", []string{"go"}, "goUserHttp")
	//consul.GetServiceByID("swoftUser")

	//如果不指定IP地址、端口号，默认为本机IP地址、8080端口
	//r.Run("127.0.0.1:9090") //指定IP和端口
	r.Run(":8080") // listen and serve on 0.0.0.0:8080
}
